//
//  TransactionCell.m
//  NewPro
//
//  Created by RYX on 2018/11/23.
//  Copyright © 2018年 何荧红. All rights reserved.
//

#import "TransactionCell.h"
#import "MerchantsDetailModel.h"

@interface TransactionCell ()
{
    
    __weak IBOutlet UILabel *nameLa;
    __weak IBOutlet UILabel *noLa;
    __weak IBOutlet UILabel *moneyLa;
}

@end

@implementation TransactionCell

+ (instancetype)tempWithTableView:(UITableView *)tableView{
    
    TransactionCell *cell = [tableView dequeueReusableCellWithIdentifier:@"CELL"];
    if (!cell) {
        
        cell = [self cell];
    }
    
    return cell;
}

+ (CGFloat)getHeight{
    
    UITableViewCell *cell = [self cell];
    return cell.frame.size.height;
}

+ (instancetype)cell{
    
    ClassName
    return [[[NSBundle mainBundle] loadNibNamed:className owner:self options:nil] objectAtIndex:0];
}


- (void)setModel:(MerchantsDetailModel *)model{
    
    nameLa.text = model.merchantName;
    noLa.text = model.merchantNo;
    moneyLa.text = model.tradeTotal;
    
}
- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
